import request from '@/utils/request'

export function getDictList(data) { // 获取数字字典列表
  return request({
    url: '/system/dict/query',
    method: 'post',
    params: data
  })
}

export function delDict(data) { // 删除字典
  return request({
    url: '/system/dict/delete',
    method: 'post',
    params: data
  })
}

export function addSave(data) { // 添加修改字典数据
  return request({
    url: '/system/dict/addsave',
    method: 'post',
    params: data
  })
}

export function checkRepeti(data) { // 验证字段名称字典值是否重复
  return request({
    url: '/system/dict/checkRepeti',
    method: 'post',
    params: data
  })
}
